package com.csc.base;

import io.netty.channel.Channel;

/**
 * @description:
 * @author: ChenShuCheng
 * @create: 2021-03-11 15:38
 **/
public enum  SessionManager {

    INSTANCE;

    private IoSession session;

    public void registerSession(Channel channel) {
        this.session = new IoSession(channel);
    }

    public void sendMsg(String msg){
        this.session.sendMessage(msg);
    }
}
